-- GENERATED SPELL FOR [Doomwarder Captain] --


function spell0_4680(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(6192,pUnit)
pUnit:RegisterEvent('Sorts_4680', 570, 1)
end

function spell1_4680(pUnit, Event) --@Ignite,n/a--
pUnit:FullCastSpellOnTarget(3261,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4680', 20000, 1)
end

function Sorts_4680(pUnit, Event)
local choix_sorts_4680 = math.random(0, 1)
if choix_sorts_4680 == 0 then
pUnit:RegisterEvent('spell0_4680', 1, 1)
end
if choix_sorts_4680 == 1 then
pUnit:RegisterEvent('spell1_4680', 1, 1)
end
end

function mob4680_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4680', math.random(1500, 3000), 1)
end

function mob4680_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4680_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4680_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4680, 1, 'mob4680_Action')
RegisterUnitEvent(4680, 2, 'mob4680_Leave')
RegisterUnitEvent(4680, 3, 'mob4680_Kill')
RegisterUnitEvent(4680, 4, 'mob4680_Die')
